<!DOCTYPE html>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style type="text/css">
        *{
            margin:0;
            padding:0;
        }
        .check-wrap {
            display: inline-block;
            width: 80px;
            font-size: 14px;
        }
        .check {
            position: relative;
            display: inline-block;
            width: 14px;
            height: 14px;
            border: 1px solid #0e050b;
            border-radius: 2px;
            color: #fff;
            margin-right: 5px;
            cursor: pointer;
            vertical-align: middle;
        }
        .check-text {
            vertical-align: middle;
            margin-right: 25px;
            cursor: pointer;
        }
        .check-wrap:hover .check{
            border-color: #20a0ff;
        }
        .check-wrap.active .check{
            border-color: #20a0ff;
            background-color: #20a0ff;
        }
        .check-wrap.active .check:after {
             position: absolute;
             top: 0;
             left: 0;
             content: " ";
             display: inline-block;
             width: 100%;
             height: 100%;
             background: url(../../img/check.png) no-repeat center center;
             background-size: 80% 80%;
         }

        .check-box{
            position: relative;
        }
        .check-box input{
            position: absolute;
            top: 0;
            left: 0;
            bottom: 0;
            right: 0;
            width: 16px;
            height: 16px;
            margin: auto 0;
            vertical-align: middle;
            z-index: 5;
            opacity: 0;
        }
        .checked .check{
            background-color: #20a0ff;
        }
        .checked .check:after {
             position: absolute;
             top: 0;
             left: 0;
             content: " ";
             display: inline-block;
             width: 100%;
             height: 100%;
             background: url(../../img/check.png) no-repeat center center;
             background-size: 80% 80%;
         }
    </style>
</head>
<body>
    <div class="check-wrap">
        <span class="check"></span>
        <span class="check-text" >外观设计</span>
    </div>

    <div class="check-box">
        <input type="checkbox" name="" id="box">
        <span class="check"></span>
        <label class="check-text" for="box" >外观设计</label>
    </div>

    <div class="check-box checkfrou">
        <input type="checkbox" name="" id="roup" style="display: none">
        <label class="check-text" for="roup" ><span class="check"></span>外观设计</label>
    </div>

    
    <style type="text/css">
        .radio-wrap input{
            display: none;
        }
        .radio-wrap label{
            cursor: pointer;
        }
        .radio-wrap .radio{
            position: relative;
            display: inline-block;
            width: 16px;
            height: 16px;
            border-radius: 2px;
            color: #fff;
            margin-right: 5px;
            vertical-align: middle;
            background: url(rcheck.png) no-repeat center;
            transition: all .4s;
        }
        .radio-wrap.checked .radio{
            background-image: url(rcheck-active.png);
        }
    </style>
    <div class="radio-wrap">
        <input type="radio" name="design" id="radio1" style="display: none">
        <label for="radio1"><span class="radio"></span>外观设计</label>
    </div>
</body>
<script type="text/javascript" src="../../js/jquery-1.12.4.min.js"></script>
<script type="text/javascript">
    $('.check-wrap').click(function(){
        $(this).toggleClass('active');
    })
 
    var input = $('input');
    input.change(function(){
         $(this).parent().toggleClass('checked');
    })

</script>
</html>